package com.lumm.services.impl;

import com.lumm.dao.TestDao;
import com.lumm.dao.TestMapper;
import com.lumm.model.Test;
import com.lumm.services.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("TestServiceImp")
public class TestServiceImpl implements TestService {
    @Autowired
    private TestMapper testDao;

    public Test querybyUsername(String username) {
        return testDao.selectByPrimaryKey(username);
    }

    public int insert(Test user) {
        return testDao.insert(user);
    }
}
